<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/WarehouseManagement/searchfirst.css">
<link rel="stylesheet" href="statics/css/secondarytitle.css">
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header layui-bg-cyan">
            <span>工厂仓库</span>
        </div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="layui-tab layui-tab-card">
                        <ul class="layui-tab-title">
                            <li class="layui-this">主信息</li>
                            <li class="">工厂仓库库存</li>
                            <li class="">库存明细统计</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                <form class="layui-form layui-from-pane" action="" id="editor-form" lay-filter="editor-form">
                                    <div class="layui-inline">
                                        <label class="layui-form-label">单据类型</label>
                                        <div class="layui-input-inline" style="width: 200px">
                                            <div id="status_1" class="xm-select-demo"></div>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">业务类型</label>
                                        <div class="layui-input-inline" style="width: 200px">
                                            <div id="type_1" class="xm-select-demo"></div>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">单据信息</label>
                                        <div class="layui-input-inline">
                                            <input class="text layui-input" type="text"  name="info" autocomplete="off" placeholder="">
                                        </div>
                                    </div>
                                    <div class="layui-inline daterange">
                                        <label class="layui-form-label">创建日期</label>
                                        <div class="layui-input-inline">
                                            <input type="text" class="layui-input starttime" name="startCreateDate" placeholder="年 - 月 - 日">&nbsp;至&nbsp;<input type="text" class="layui-input starttime"  name="endCreateDate" placeholder="年 - 月 - 日">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">所属操作员</label>
                                        <div class="layui-input-inline" style="width: 200px">
                                            <div id="operationCode_1" class="xm-select-demo"></div>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">部门操作员</label>
                                        <div class="layui-input-inline" style="width: 200px">
                                            <div id="deptOperationCode_1" class="xm-select-demo"></div>
                                        </div>
                                    </div>

                                    <button class="layui-btn layui-btn-sm layui-btn-submit" lay-submit="" lay-filter="submit_form_1" style="margin-left: 10px">搜索</button>
                                    <button type="reset" class="layui-btn layui-btn-sm layui-btn-submit" id="clear_1">重置</button>
                                </form>
                                <table class="layui-table" id="samplemasterinformation" lay-filter="samplemasterinformationtable"></table>
                            </div>
                            <div  class="layui-tab-item">
                                <form class="layui-form layui-from-pane" action="" id="editor-forms" lay-filter="editor-forms">
                                    <div class="layui-inline">
                                        <label class="layui-form-label">仓库名称</label>
                                        <div class="layui-input-inline" style="width: 200px">
                                            <div id="warehouseCode_2" class="xm-select-demo"></div>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">单据信息</label>
                                        <div class="layui-input-inline">
                                            <input class="text layui-input" type="text"  name="info" autocomplete="off" placeholder="">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">批次</label>
                                        <div class="layui-input-inline">
                                            <input class="text layui-input" type="text"  name="lotNo" autocomplete="off" placeholder="">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">单据编号</label>
                                        <div class="layui-input-inline">
                                            <input class="text layui-input" type="text"  name="billNo" autocomplete="off" placeholder="">
                                        </div>
                                    </div>

                                    <button class="layui-btn layui-btn-sm layui-btn-submit" lay-submit="" lay-filter="submit_form_2" style="margin-left: 10px">搜索</button>
                                    <button type="reset" class="layui-btn layui-btn-sm layui-btn-submit" id="clear_2">重置</button>
                                </form>
                                <table class="layui-table" id="sampleinventory" lay-filter="sampleinventorytable"></table>
                            </div>

                            <!--------------------------------------------------------------------------------->
                            <div  class="layui-tab-item">
                                <form class="layui-form layui-from-pane" action="" id="editor-forms" lay-filter="editor-forms">
                                    <div class="layui-inline">
                                        <label class="layui-form-label">单据类型</label>
                                        <div class="layui-input-inline" style="width: 200px">
                                            <div id="status_3" class="xm-select-demo"></div>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">业务类型</label>
                                        <div class="layui-input-inline" style="width: 200px">
                                            <div id="type_3" class="xm-select-demo"></div>
                                        </div>
                                    </div>
                                    <div class="layui-inline daterange">
                                        <label class="layui-form-label">创建日期</label>
                                        <div class="layui-input-inline">
                                            <input type="text" class="layui-input starttime" name="startCreateDate" placeholder="年 - 月 - 日">&nbsp;至&nbsp;<input type="text" class="layui-input starttime"  name="endCreateDate" placeholder="年 - 月 - 日">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">单据编号</label>
                                        <div class="layui-input-inline">
                                            <input class="text layui-input" type="text"  name="billNo" autocomplete="off" placeholder="">
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">所属操作员</label>
                                        <div class="layui-input-inline" style="width: 200px">
                                            <div id="operationCode_3" class="xm-select-demo"></div>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">部门操作员</label>
                                        <div class="layui-input-inline" style="width: 200px">
                                            <div id="deptOperationCode_3" class="xm-select-demo"></div>
                                        </div>
                                    </div>

                                    <div class="layui-inline">
                                        <label class="layui-form-label">产品仓库</label>
                                        <div class="layui-input-inline" style="width: 200px">
                                            <div id="warehouseCode_3" class="xm-select-demo"></div>
                                        </div>
                                    </div>
                                    <div class="layui-inline">
                                        <label class="layui-form-label">产品信息</label>
                                        <div class="layui-input-inline">
                                            <input class="text layui-input" type="text"  name="productInfo">
                                        </div>
                                    </div>
                                    <button class="layui-btn layui-btn-sm layui-btn-submit" lay-submit="" lay-filter="submit_form_3" style="margin-left: 10px">搜索</button>
                                    <button type="reset" class="layui-btn layui-btn-sm layui-btn-submit" id="clear_3">重置</button>
                                    <button class="layui-btn layui-btn-sm layui-btn-submit" lay-submit="" lay-filter="exportData_3" style="margin-left: 10px">导出Excel</button>
                                </form>
                                <table class="layui-table" id="inventoryDetail" lay-filter="inventoryDetailTable"></table>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="samplemasterinformationtoolbar">
    <a class="layui-btn layui-btn-sm layui-btn-normal" id="registration" style="margin-left: 10px" lay-event="registration">登记</a>
    <a class="layui-btn layui-btn-sm layui-btn-normal" id="bringforth" style="margin-left: 10px" lay-event="bringforth">领出</a>
</script>

<script type="text/html" id="samplemasterinformationeditor">
    {{# if(d.statusStr=='草稿箱' ||d.statusStr=='待批箱' ||d.statusStr=='已批箱'){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="update">修改</a>
    {{# } }}
    {{# if(d.statusStr=='草稿箱'){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="submits">提交审批</a>
    {{# } }}
    {{# if(d.statusStr=='待批箱'){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="through">审批通过</a>
    {{# } }}
    {{# if(d.statusStr=='待批箱' ||d.statusStr=='已批箱' ||d.statusStr=='完成箱'){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="backtothe">审批退回</a>
    {{# } }}
    {{# if(d.statusStr=='已批箱'){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="complete">完成</a>
    {{# } }}
    {{# if(d.statusStr=='草稿箱' ||d.statusStr=='垃圾箱'){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="delect">删除</a>
    {{# } }}
</script>

<script type="text/html" id="imgTpl">
    <img src="{{d.img}}" alt="产品图片" style="max-width:70px;max-height: 28px;">
</script>

<%@ include file="../tpl/foot.jsp"%>
<script src="statics/modules/xm-select.js"></script>
<script src="statics/js/WarehouseManagement/samplesresources.js"></script>